
app.controller("ctrl-one",function($scope,$http){
//	$(".shouye ul").on("click","li",function(){
//		$(this).addClass("one").siblings().removeClass("one");
//	})
	
	$http.get("data/shuju.json").success(function(data){
		console.log(data);
		$scope.arr=data.shouyeOne;
		
	})
    $scope.heart = function(index){
//  	console.log($scope.arr[index].isShow)
    	$scope.arr[index].isShow = !$scope.arr[index].isShow;
    	if($scope.arr[index].isShow){
    		$scope.arr[index].live++
    	}else{
    		$scope.arr[index].live--
    	}
    }
})
